package com.huawei.object;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Random;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Computer {
    private String name = "computer";
    private Integer operations;

    public Integer getOperations() {
        operations =new Random().nextInt(3)+1;
        return operations;
    }
}
